package com.wwmz.open.closed.impl;

/**
 * Created by wumz on 2020/9/13 11:32
 */
public class JavaDiscountProduct extends JavaProduct{

    public JavaDiscountProduct(Integer id, String name, Double price) {
        super(id, name, price);
    }

    //打折
    public Double getDiscountPrice(Double discount){
        return super.getPrice() * discount;
    }
}
